package mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.MyUser;

import java.util.List;

/**
 * author: 李林凯
 * time:2025/6/17 09:12
 **/
@Mapper
public interface UserMapper {
    MyUser selectUserById(int id);
    List<MyUser> selectAllUser();
    int insertUser(MyUser user);
    int updateUser(MyUser user);
    int deleteUserById(int id);
    List<MyUser> getUserByPage(@Param("page") Integer page, @Param("pageSize") Integer pageSize);
    int getUserCount();
}
